package com.guhus.ec.mapper.seller;

import com.guhus.ec.pojo.seller.Product;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

@MapperScan
public interface ProductMapper {
    List<Product> selectAllProducts();

    Product selectProductById(Integer id);

    Product selectProductByName(String name);

    void insertProduct(Product product);

    void deleteProductById(Integer id);

    void updateProduct(Product product);
}
